The sort() method sorts an array alphabetically.